/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const floorRouter = {
    path: '/floor',
    component: Layout,
    redirect: 'noredirect',
    name: 'floor',
    meta: {
        title: '装修',
        icon: 'qu'
    },
    children: [
        {
            path: 'mobile',
            component: () => import('@/views/floor/index'),
            name: 'floorMobile',
            meta: {title: '移动端', role: ['admin']}
        },
        {
            path: 'mobile/create',
            component: () => import('@/views/floor/wap/main'),
            name: 'createMobile',
            meta: {title: '添加模板', role: ['admin'], activeMenu: '/floor/mobile'},
            hidden: true
        },
        {
            path: 'mobile/edit',
            component: () => import('@/views/floor/wap/main'),
            name: 'editMobile',
            meta: {title: '编辑模板', role: [], activeMenu: '/floor/mobile'},
            hidden: true
        },
        {
            path: 'globalStyle',
            component: () => import('@/views/floor/global/index'),
            name: 'globalStyle',
            meta: {title: '全局样式', role: ['admin']}
        },
        {
            path: 'homeTrends',
            component: () => import('@/views/floor/home/trends'),
            name: 'homeTrends',
            meta: {title: '首页展示素材', role: ['admin']}
        },
        {
            path: 'homeFloor',
            component: () => import('@/views/floor/home/floor'),
            name: 'homeFloor',
            meta: {title: '首页楼层展示', role: ['admin']}
        },
    ]
}
export default floorRouter
